package encore.log.impl;

import encore.log.Logger;
import encore.log.Marker;

public class LoggerImpl implements Logger  {
	private org.slf4j.Logger logger;
	
	public LoggerImpl(org.slf4j.Logger logger)
    {
		this.logger=logger;
    }

	public void debug(String msg) {
		logger.debug(msg);
	}

	public void debug(String format, Object arg) {
	   logger.debug(format,arg);
	}

	public void debug(String format, Object arg1, Object arg2) {
	  logger.debug(format,arg1,arg2);
	}

	public void debug(String format, Object[] argArray) {
		logger.debug(format,argArray);
	}

	public void debug(String msg, Throwable t) {
	    logger.debug(msg,t);
	}

	public void debug(Marker marker, String msg) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.debug(impl.getMarker(),msg);
	}

	public void debug(Marker marker, String format, Object arg) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.debug(impl.getMarker(),format,arg);
	}

	public void debug(Marker marker, String format, Object arg1, Object arg2) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.debug(impl.getMarker(),format,arg1,arg2);
	}

	public void debug(Marker marker, String format, Object[] argArray) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.debug(impl.getMarker(),format,argArray);
	}

	public void debug(Marker marker, String msg, Throwable t) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.debug(impl.getMarker(),msg,t);
	}

	public void error(String msg) {
	   logger.error(msg);
	}

	public void error(String format, Object arg) {
       logger.error(format,arg);
	}

	public void error(String format, Object arg1, Object arg2) {
	   logger.error(format,arg1,arg2);
	}

	public void error(String format, Object[] argArray) {
      logger.error(format,argArray);
	}

	public void error(String msg, Throwable t) {
	   logger.error(msg,t);
	}

	public void error(Marker marker, String msg) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.error(impl.getMarker(),msg);
	}

	public void error(Marker marker, String format, Object arg) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.error(impl.getMarker(),format,arg);
	}

	public void error(Marker marker, String format, Object arg1, Object arg2) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.error(impl.getMarker(),format,arg1,arg2);
	}

	public void error(Marker marker, String format, Object[] argArray) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.error(impl.getMarker(),format,argArray);

	}

	public void error(Marker marker, String msg, Throwable t) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.error(impl.getMarker(),msg,t);
		
	}

	public String getName() {
	   return logger.getName();
	}

	public void info(String msg) {
         logger.info(msg);
	}

	public void info(String format, Object arg) {
        logger.info(format,arg);
	}

	public void info(String format, Object[] argArray) {
		logger.info(format,argArray);

	}

	public void info(String msg, Throwable t) {
		logger.info(msg,t);

	}

	public void info(Marker marker, String msg) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.info(impl.getMarker(),msg);
	}

	public void info(Marker marker, String format, Object arg) {
		MarkerImpl impl=(MarkerImpl)marker;
       logger.info(impl.getMarker(),format,arg);
	}

	public void info(Marker marker, String format, Object arg1, Object arg2) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.info(impl.getMarker(),format,arg1,arg2);
	}

	public void info(Marker marker, String msg, Throwable t) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.info(impl.getMarker(),msg,t);
	}

	public boolean isDebugEnabled() {
	  return logger.isDebugEnabled();
	}

	public void isDebugEnabled(Marker marker) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.isDebugEnabled(impl.getMarker());
	}

	public boolean isErrorEnabled() {
		// TODO Auto-generated method stub
		return logger.isErrorEnabled();
	}

	public boolean isErrorEnabled(Marker marker) {
		MarkerImpl impl=(MarkerImpl)marker;
		return logger.isErrorEnabled(impl.getMarker());
	}

	public boolean isInfoEnabled() {
		// TODO Auto-generated method stub
		return logger.isInfoEnabled();
	}

	public boolean isInfoEnabled(Marker marker) {
		MarkerImpl impl=(MarkerImpl)marker;
		return logger.isInfoEnabled(impl.getMarker());
	}

	public boolean isTraceEnabled() {
		// TODO Auto-generated method stub
		return logger.isTraceEnabled();
	}

	public boolean isTraceEnabled(Marker marker) {
		MarkerImpl impl=(MarkerImpl)marker;
		return logger.isTraceEnabled(impl.getMarker());
	}

	public boolean isWarnEnabled() {
		// TODO Auto-generated method stub
		return logger.isWarnEnabled();
	}

	public void isWarnEnabled(Marker marker) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.isWarnEnabled(impl.getMarker());
	}

	public void trace(String msg) {
		logger.trace(msg);
	}

	public void trace(String format, Object object) {
		logger.trace(format,object);
	}

	public void trace(String format, Object arg1, Object arg2) {
		logger.trace(format,arg1,arg2);
	}

	public void trace(String format, Object[] argArrays) {
		logger.trace(format,argArrays);
	}

	public void trace(String msg, Throwable t) {
		logger.trace(msg,t);
	}

	public void trace(Marker marker, String msg) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.trace(impl.getMarker(),msg);
	}

	public void trace(Marker marker, String format, Object arg) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.trace(impl.getMarker(),format,arg);
	}

	public void trace(Marker marker, String format, Object arg1, Object arg2) {
		MarkerImpl impl=(MarkerImpl)marker;
       logger.trace(impl.getMarker(),format,arg1,arg2);
	}

	public void trace(Marker marker, String format, Object[] argArray) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.trace(impl.getMarker(),format,argArray);
	}

	public void warn(String msg) {
     logger.warn(msg);
	}

	public void warn(String format, Object arg) {
		logger.warn(format,arg);
	}

	public void warn(String format, Object[] argArray) {
        logger.warn(format,argArray);
	}

	public void warn(String format, Object arg1, Object arg2) {
		logger.warn(format,arg1,arg2);
	}

	public void warn(String msg, Throwable t) {
		 logger.warn(msg,t);
	}

	public void warn(Marker marker, String msg) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.warn(impl.getMarker(),msg);
	}

	public void warn(Marker marker, String format, Object arg) {
		MarkerImpl impl=(MarkerImpl)marker;
        logger.warn(impl.getMarker(),format,arg);
	}

	public void warn(Marker marker, String format, Object arg1, Object arg2) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.warn(impl.getMarker(),format,arg1,arg2);

	}

	public void warn(Marker marker, String format, Object[] argArray) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.warn(impl.getMarker(),format,argArray);
	}

	public void warn(Marker marker, String msg, Throwable t) {
		MarkerImpl impl=(MarkerImpl)marker;
		logger.warn(impl.getMarker(),msg,t);

	}

}
